﻿using JinfuyuanProject.Entity;

using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;


namespace JinfuyuanProject.Repository.Interface
{
    public interface IPackageServicesRepository
    {
        IQueryable<PackageServices> GetList();

        PackageServices GetModel(int Id);

        bool Delete(PackageServices packageServices);

        int Insert(PackageServices packageServices);
      
        bool Update(PackageServices packageServices);
        IEnumerable<T> QueryBySql<T>(string sql);
        #region 业务方法
        int InsertBatch(List<PackageServices> packageservicesList);
        IQueryable<PackageServices> GetList(Expression<Func<PackageServices, bool>> filter = null);
        bool DeleteBatch(List<PackageServices> packageServicesList);
        #endregion
    }
}
